class BaseEntity {
  dynamic data;
  int errorCode;
  String errorMsg;

  BaseEntity({
    this.data,
    required this.errorCode,
    required this.errorMsg,
  });

  factory BaseEntity.fromJson(Map<String, dynamic> json) => BaseEntity(
        data: json["data"],
        errorCode: json["errorCode"],
        errorMsg: json["errorMsg"],
      );

  Map<String, dynamic> toJson() => {
        "data": data,
        "errorCode": errorCode,
        "errorMsg": errorMsg,
      };
}
